package com.cmc.cloud.cmclink.doc.dto;

import javax.validation.constraints.NotBlank;

import org.hibernate.validator.constraints.Length;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.ToString;

/**
 * 箱型TEU
 * 
 * @author dev89
 * @date 2025/08/01 14:46
 **/
@Data
@Schema(description = "箱型TEU")
@ToString(callSuper = true)
public class CntrTeuDTO {
    @Schema(description = "箱型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotBlank(message = "箱型不能为空")
    @Length(max = 2, message = "箱型支持最大长度{max}")
    private String cntrType;

    @Schema(description = "箱尺寸 同尺寸拆分", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotBlank(message = "箱尺寸 同尺寸拆分不能为空")
    @Length(max = 2, message = "箱尺寸 同尺寸拆分支持最大长度{max}")
    private String cntrSize;

    @Schema(description = "每个箱型TEU")
    private Integer teu;
}
